<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:53:"E:\WWW\waimai/app/wechat/user\view\index\collect.html";i:1502953691;s:53:"E:\WWW\waimai/app/wechat/user\view\template\base.html";i:1502096399;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>外卖</title>
    <link rel="stylesheet" href="__STATIC__/css/mui.min.css">
    <link rel="stylesheet" href="__STATIC__/css/ks.css">
    
    <script>
        var root_path = "<?php echo \think\Request::instance()->root(); ?>";
        var require_path = "__STATIC__/app";
    </script>
    <script src="__STATIC__/app/plugin/wechat/weixin.js"></script>
    <script src="__STATIC__/app/require.js"></script>
    <script src="__STATIC__/app/require.config.js"></script>
    <script src="__STATIC__/app/plugin/jquery-3.2.1.min.js"></script>
    <script src="__STATIC__/app/plugin/mui/mui.min.js"></script>
    
</head>
<body>


<header class="header">
    <div>
        <a class="goback"><i class="iconfont icon-zuoyoujiantou-copy-copy-copy"></i></a>
        我的收藏
    </div>
</header>
<div class="pages">
    <!-- Swiper -->
    <div id="refreshContainer" class="mui-scroll-wrapper" style="margin-top: -1px">
        <div class="mui-scroll">
            <div class="shop-list">
                <ul id="data_ul" >
                    <template v-for="item in items">
                        <li v-for="vo in item" class="mui-table-view-cell">
                            <div class="mui-slider-right mui-disabled">
                                <a @tap="notCollect(vo.id)" class="mui-btn mui-btn-red color-primary">取消收藏</a>
                            </div>
                            <div @tap="detailbtn(vo.id)" class="mui-slider-handle mui-navigate-right">
                                <div class="img"><img :src="vo.logo"/></div>
                                <div class="text">
                                    <div class="title">{{vo.name}}</div>
                                    <div>
                                        <p class="ellipsis font12">{{vo.shop_address}}</p>
                                        <p class="font12">
                                            <span class="color-primary">￥{{vo.aps_price}}元</span>起送
                                            <!--<span class="pull-right">3.2km</span>-->
                                        </p>
                                    </div>
                                </div>
                            </div>

                        </li>
                    </template>
                </ul>
            </div>
        </div>
        <div class="tip-icon" id="tip-icon" style="display: none;"><i class="iconfont icon-dingdan"></i>
            <p>暂无收藏</p></div>
    </div>
</div>


</body>
<script>

    if(document.querySelector('.goback')!==null){

        document.querySelector('.goback').addEventListener('tap', function () {
            history.back();
        })
    }
</script>

<script>
    var list_url = "<?php echo url('user/Index/collect'); ?>";
    var goods_url = "<?php echo url('shop/Goods/index'); ?>";
    var del_collect_url = "<?php echo url('shop/Shop/del_collect_store'); ?>";
    require(['user/collect']);
</script>

</html>